import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'

import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
import VueLazyLoad from 'vue-lazyload'

Vue.use(ElementUI);
// 全局注册
Vue.use(VueLazyLoad, {
  preLoad: 1,
  error: require('./assets/error.jpeg'),   // 错误图
  loading: require('./assets/loading.jpeg'), // 占位图
  attempt: 2,
})

Vue.config.productionTip = false

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
